package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.dto.DishDto;
import com.itheima.reggie.pojo.Dish;

import java.util.List;

public interface DishService extends IService<Dish> {
    void saveWithFlavors(DishDto dishDto);
    List<DishDto> listWithFlavors(Long categoryId, Integer status);

   Page<DishDto> selectPageByName(Integer page, Integer pageSize, String name);

    DishDto selectById(Long id);

    void updateStatusByIds(Integer status, Long[] ids);

    void deleteByIds(Long[] ids);
}
